<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue 数据绑定</title>
    <script src="./js/vue.min.js"></script>
</head>
<body>

    <div id="vm01">
        {{ message }}
    </div>
    <hr>
    <div id="vm02">
        昵称：<input type="text" v-model="nickname" /> [{{nickname}}]
        <br>
        年龄：<input type="number" v-model="age" /> [{{age}}]
    </div>

    <script>

        var vm01 = new Vue({
            el: '#vm01',
            data: {
                message: 'Hello Vue!'
            }
        });

        var vm02 = new Vue({
            el: '#vm02',
            data: {
                nickname: '大力水手',
                age: 18
            }
        });

    </script>
    
</body>
</html>